<template>
  <div>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="name" label=""> 
        <el-checkbox></el-checkbox>
      </el-table-column>
      <el-table-column type="index" label="id" > </el-table-column>
      <el-table-column prop="title" label="姓名" > </el-table-column>
      <el-table-column prop="age" label="年龄" > </el-table-column>
      <el-table-column prop="city" label="城市" > </el-table-column>
      <el-table-column prop="date" label="操作" >
        <el-button type="primary" @click="del()">删除</el-button>
        <el-button type="success">编辑</el-button>
     </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
   props:['send'],
  data() {
    return {
      tableData: [],
    };
  },
  methods: {
    del(i) {
        this.tableData.splice(i,1)
    }
  },
  mounted() {
    this.tableData=this.send
    console.log(this.tableData)
  },
};
</script>

<style lang="scss" >

</style>